<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Storage</title>
    <link rel="stylesheet" href="./style.css">
</head>
<body>
    <h1>Cookie</h1>
    <div id="app">

        <!-- 是否已经登录？Cookie？检查 -->
        <section id="loginSection" style="display: none;">
            <form id="loginForm">
                <input type="text" id="username" placeholder="Username" required />
                <input type="text" id="password" placeholder="Password" required />
                <button type="submit">Login</button>
            </form>
        </section>

        <section id="welcomeSection" style="display: none;">
            <p>Welcome, <span id="userDisplay"></span>!</p>
            <button id="logoutBtn">Logout</button>
        </section>

        <!-- <button id="loginBtn">Login</button> -->

    </div>
    <script src="./script.js"></script>
</body>
</html>